package control;

import Bean.Checkout;
import java.util.Date;
import javax.swing.table.TableModel;
import model.HirePayModel;
import model.ResultSetTableModel;

public class HirePayControl
{

    HirePayModel hpModel = new HirePayModel();

    public ResultSetTableModel getAllCustomer()
    {
        return hpModel.getAllCustomer();
    }

    public ResultSetTableModel getAllRoom()
    {
        return hpModel.getAllRoom();
    }

    public boolean addHireRoom(int CustomerID, int Room, Date date)
    {
        return hpModel.addHireRoom(CustomerID, Room, date);
    }

    public void changeRoom(int name, String state)
    {
        hpModel.changeRoom(name, state);
    }

    public ResultSetTableModel getAllCustomerhireRoom()
    {
        return hpModel.getAllCustomerhireRoom();
    }

    public Checkout getInforCustomer(int ID)
    {
        return hpModel.getInforCustomer(ID);
    }

    public void deleteCustomer(int nameroom)
    {
        hpModel.deleteCustomer(nameroom);
    }

    public void addCustomerHistory(Checkout Checkout)
    {
        hpModel.addCustomerHistory(Checkout);
    }

    public ResultSetTableModel filterCustomer(String key)
    {
        return hpModel.filterCustomer(key);
    }

    public ResultSetTableModel filterRoom(String key)
    {
        return hpModel.filterRoom(key);
    }

    public TableModel getRoomCategory(Date tu, Date den)
    {
        return hpModel.getAll(tu, den);
    }

    public ResultSetTableModel filterNameRoom(String key)
    {
        return hpModel.filterNameRoom(key);
    }

    public ResultSetTableModel filterTypeRoom(String key)
    {
        return hpModel.filterTypeRoom(key);
    }

    public ResultSetTableModel filterStateRoom(String key)
    {
        return hpModel.filterStateRoom(key);
    }

    public ResultSetTableModel filterNameCustomer(String key)
    {
        return hpModel.filterNameCustomer(key);
    }

    public ResultSetTableModel filterPhoneCustomer(String key)
    {
        return hpModel.filterPhoneCustomer(key);
    }

    public ResultSetTableModel filterCMTNDCustomer(String key)
    {
        return hpModel.filterCMTNDCustomer(key);
    }

    public ResultSetTableModel getAllRoomCategory()
    {
        return hpModel.getAllRoomCategory();
    }
}
